package cn.learn.testmongo.repo;

import cn.learn.testmongo.po.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface UserRepository extends MongoRepository<User, Integer> {
    public List<User> getUserByName(String name);
    public User getUserByNameAndPassword(String name, String password);
    public User getUserById(int id);
}
